package com.stadium.mapper;

import com.stadium.dto.EventAndScheduleDto;
import com.stadium.dto.GameEventDto;
import com.stadium.dto.TeamListDto;
import com.stadium.entity.REventTeam;
import com.stadium.dto.REventTeamDto;
import com.stadium.vo.REventTeamVo;
import com.stadium.vo.searchVo.SearchVo;
import com.stadium.vo.searchVo.SearchVo;
import com.stadium.vo.searchVo.REventTeamSearchVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 赛事球队关系表
 *
 * @author wsl
 * @email
 * @date 2021-05-07 21:59:01
 */
public interface REventTeamMP {
    void save(REventTeam rEventTeam);

    void saveBatch(List<REventTeam> list);

    void delete(String id);

    void deleteBatch(String[] ids);

    void update(REventTeam rEventTeam);

    List<REventTeamDto> query(REventTeamSearchVo searchVo);

    REventTeamDto get(String id);

    int getCount(REventTeamSearchVo searchVo);

    List<TeamListDto> queryTeamByEventId(String id);

    List<GameEventDto> findListByTeamId(String teamId);

    List<EventAndScheduleDto> getEventByTeamIds(@Param("teamIds") String[] teamIds);

    Integer queryTeamByEventIdAndTeamId(@Param("eventId") String eventId, @Param("teamId") String teamId);
}
